// app.js
App({
  //-------------全局的数据和函数-begin-----------------
  avatarUrl: "",
  nickname: "",
  msg: "我叫MT",
  changeMsg(value) {
    this.msg = value;
  },
  //-------------全局的数据和函数-end-------------------
  onLaunch() {
    this.avatarUrl = wx.getStorageSync("avatarUrl");
    this.nickname = wx.getStorageSync("nickname");
    console.log(this);
  },
});
